package com.web709.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
//需要数据表
import java.time.LocalDateTime;
@Data
@ApiModel(value = "积分变动记录实体类")
public class PointsTransactions {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private int id;
    @ApiModelProperty(value = "用户id")
    @TableField(value = "volunteer_id")
    private int userId;
    @ApiModelProperty(value = "积分变动")
    private int pointsChange;
    @ApiModelProperty(value = "积分变动原因")
    private String reason;
    @ApiModelProperty(value = "交易时间")
    private LocalDateTime transactionDate;

}
